<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Open SCA: frameworks/DomainMgr/src/DomainManager_server.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.onetek.net"><img alt="Logo" src="openscaLogo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Open SCA
   &#160;<span id="projectnumber">Version 0.6.0</span>
   </div>
   <div id="projectbrief">Open SCA</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_domain_manager__server_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">DomainManager_server.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_domain_manager__server_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***************************************************************************/</span><span class="comment">/****************************************************************************/</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="debug_8h.html">debug.h</a>&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="opensca_support_8h.html">openscaSupport.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;../include/DomainManager_impl.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_s_p_d_parser_8h.html">SPDParser.h</a>&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_d_m_d_parser_8h.html">DMDParser.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_config_parser_8h.html">ConfigParser.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_boost__utils_8h.html">Boost_utils.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef __SDS_OS_VXWORKS__</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keywordtype">int</span> Domain_Manager_Main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * argv[])</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#elif defined __SDS_OS_LINUX__</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * argv[])</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#ifdef __SDS_OS_VXWORKS__</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        semTake(domainMgrMtx, WAIT_FOREVER);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#elif defined __SDS_OS_LINUX__</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <a class="code" href="_boost__utils_8h.html#adb83a541d0810ae6f365708645905f0f">waitSemaphore</a>(<a class="code" href="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t.html#ad9276652cc5ea641f73bf482990ddddb">BOOST_CONSTANT::DOMAIN_MANAGER_CND</a>);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">char</span> <a class="code" href="_bootloader_8cpp.html#a520ae4f8693a7d6529c67272b80da0c4">openScaPath</a>[64];</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="_domain_manager__server_8cpp.html#acc12349b3b14d2cf4d87803dd9f362bf">getConfigFilePathFromSHM</a>(openScaPath, <span class="keyword">sizeof</span>(openScaPath));</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="class_config_parser.html">ConfigParser</a> <a class="code" href="_domain_manager__server_8cpp.html#a4edd73f527ab08df5052a34ec4324e40">configParser</a>(openScaPath);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#afb91446413d17e8e077d6c01f86230a7">   49</a></span>&#160;        std::string <a class="code" href="_domain_manager__server_8cpp.html#afb91446413d17e8e077d6c01f86230a7">sdrRoot</a> = <a class="code" href="_domain_manager__server_8cpp.html#a4edd73f527ab08df5052a34ec4324e40">configParser</a>.<a class="code" href="class_config_parser.html#a837c454417e8264af505e5599890c254">getValueById</a>(<a class="code" href="namespace_c_o_n_s_t_a_n_t.html#a817837bca0c63cbd569427dd33f78fdc">CONSTANT::SDRROOT</a>);</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a4955ec00a5f5c913e2ce439c5424953b">   50</a></span>&#160;        std::string <a class="code" href="_domain_manager__server_8cpp.html#a4955ec00a5f5c913e2ce439c5424953b">dmdPath</a> = <a class="code" href="_domain_manager__server_8cpp.html#a4edd73f527ab08df5052a34ec4324e40">configParser</a>.<a class="code" href="class_config_parser.html#a837c454417e8264af505e5599890c254">getValueById</a>(<a class="code" href="namespace_c_o_n_s_t_a_n_t.html#ad7847c211da5f866989c9a050634fbf4">CONSTANT::DMDPATH</a>);</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a4361c21b905b940373768d00ffc825af">   51</a></span>&#160;        std::string <a class="code" href="_domain_manager__server_8cpp.html#a4361c21b905b940373768d00ffc825af">dmdfl</a> = sdrRoot + <span class="stringliteral">&quot;/&quot;</span> + <a class="code" href="_domain_manager__server_8cpp.html#a4955ec00a5f5c913e2ce439c5424953b">dmdPath</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a49943bdb8560720d07c87de869066484">   52</a></span>&#160;        std::string <a class="code" href="_domain_manager__server_8cpp.html#a49943bdb8560720d07c87de869066484">fsRoot</a> = <a class="code" href="_domain_manager__server_8cpp.html#a4edd73f527ab08df5052a34ec4324e40">configParser</a>.<a class="code" href="class_config_parser.html#a837c454417e8264af505e5599890c254">getValueById</a>(<a class="code" href="namespace_c_o_n_s_t_a_n_t.html#a3239fb87215ad73d0f60b81c62f03da2">CONSTANT::FSROOT</a>);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(7, DomainMgr, <span class="stringliteral">&quot; argc is: &quot;</span> &lt;&lt; argc)</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="comment">//get execute params</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">   57</a></span>&#160;        char** <a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a> = new <span class="keywordtype">char</span> * [argc];</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a14a29423c457f139c3d29cdc483a7ed5">   58</a></span>&#160;        <a class="code" href="_domain_manager__server_8cpp.html#a14a29423c457f139c3d29cdc483a7ed5">for</a> (<span class="keywordtype">int</span> i = 0; i &lt; argc; i++) {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a>[i] = <span class="keyword">new</span> <span class="keywordtype">char</span>[strlen(argv[i]) + 1];</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                bzero(<a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a>[i], strlen(argv[i]) + 1);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                strcpy(<a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a>[i], argv[i]);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        }</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(7, DomainMgr, <span class="stringliteral">&quot;begin to instantiate ORB_Wrap&quot;</span>)</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(7, DomainMgr_Server, <span class="stringliteral">&quot; fsRoot is: &quot;</span> &lt;&lt; fsRoot)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(7, DomainMgr_Server, <span class="stringliteral">&quot; dmdpfl is: &quot;</span> &lt;&lt; dmdfl)</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a60800f64e566fffd5bca7065dc80c152">   67</a></span>&#160;        <a class="code" href="namespaceopensca_support.html">openscaSupport</a>::ORB_Wrap * <a class="code" href="_domain_manager__server_8cpp.html#a60800f64e566fffd5bca7065dc80c152">orbWrap</a> = new <a class="code" href="namespaceopensca_support.html">openscaSupport</a>::ORB_Wrap();</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="comment">//instantiate domainmanager servant</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#ab34de1f26d2311c7059d1f1ebcb96851">   70</a></span>&#160;        <a class="code" href="class_domain_manager__impl.html">DomainManager_impl</a>* <a class="code" href="_domain_manager__server_8cpp.html#ab34de1f26d2311c7059d1f1ebcb96851">dmnMgrImpl</a> =</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            new <a class="code" href="class_domain_manager__impl.html">DomainManager_impl</a>(dmdfl.c_str(), fsRoot.c_str());</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">//      dmnMgrImpl-&gt;postConstructor();</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a44560cd6862e398296e0e5c1c79b4a3c">   73</a></span>&#160;        CF::DomainManager_var <a class="code" href="_domain_manager__server_8cpp.html#a44560cd6862e398296e0e5c1c79b4a3c">dmnMgrServant</a> = <a class="code" href="_domain_manager__server_8cpp.html#ab34de1f26d2311c7059d1f1ebcb96851">dmnMgrImpl</a>-&gt;_this();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="comment">//get spd path</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="class_d_m_d_parser.html">DMDParser</a> <a class="code" href="_domain_manager__server_8cpp.html#ab12d606fe78b5f992d8f266865bc9d53">dmdParser</a>(fsRoot + &quot;/&quot; + dmdfl);</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a27825c53a59eee89b36ffb5bf63b691e">   77</a></span>&#160;        <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">string</span> <a class="code" href="_domain_manager__server_8cpp.html#a27825c53a59eee89b36ffb5bf63b691e">spdName</a> = <a class="code" href="_domain_manager__server_8cpp.html#ab12d606fe78b5f992d8f266865bc9d53">dmdParser</a>.getDomainManagerSoftPkg();</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a1910d262855b71da353ed0d07a6c7823">   78</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="_domain_manager__server_8cpp.html#a1910d262855b71da353ed0d07a6c7823">pos</a> = dmdfl.find_last_of(&quot;/&quot;);</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#aa2362c524750d91af654c8993730355a">   79</a></span>&#160;        <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">string</span> <a class="code" href="_domain_manager__server_8cpp.html#aa2362c524750d91af654c8993730355a">spdfl</a> = dmdfl.substr(0, <a class="code" href="_domain_manager__server_8cpp.html#a1910d262855b71da353ed0d07a6c7823">pos</a> + 1) + <a class="code" href="_domain_manager__server_8cpp.html#a27825c53a59eee89b36ffb5bf63b691e">spdName</a>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="comment">//get domain name by parsering spd file</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <a class="code" href="class_s_p_d_parser.html">SPDParser</a> <a class="code" href="_domain_manager__server_8cpp.html#a890d9eaac0943ec0a1ff839f42c0c62b">spdParser</a>(fsRoot + &quot;/&quot; + <a class="code" href="_domain_manager__server_8cpp.html#aa2362c524750d91af654c8993730355a">spdfl</a>);</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a659f36defdc75a77b3952f5f6763eae3">   83</a></span>&#160;        <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">string</span> <a class="code" href="_domain_manager__server_8cpp.html#a659f36defdc75a77b3952f5f6763eae3">domainName</a> = <a class="code" href="_domain_manager__server_8cpp.html#a890d9eaac0943ec0a1ff839f42c0c62b">spdParser</a>.getSoftPkgName();</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a7622b10774f2ad5396784ba366063265">   84</a></span>&#160;        <a class="code" href="namespacestd.html">std</a>::<span class="keywordtype">string</span> <a class="code" href="_domain_manager__server_8cpp.html#a7622b10774f2ad5396784ba366063265">openscaDomain</a> = const_cast&lt;<span class="keywordtype">char</span>*&gt;(<a class="code" href="namespace_c_o_n_s_t_a_n_t.html">CONSTANT</a>::<a class="code" href="namespace_c_o_n_s_t_a_n_t.html#a30a0a81efb4f73a8fb963a08d3328ded">OPENSCA_DOMAIN</a>);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="_domain_manager__server_8cpp.html#a659f36defdc75a77b3952f5f6763eae3">domainName</a> = <a class="code" href="_domain_manager__server_8cpp.html#a7622b10774f2ad5396784ba366063265">openscaDomain</a> + &quot;/&quot; + <a class="code" href="_domain_manager__server_8cpp.html#a659f36defdc75a77b3952f5f6763eae3">domainName</a>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <a class="code" href="_domain_manager__server_8cpp.html#a60800f64e566fffd5bca7065dc80c152">orbWrap</a>-&gt;<a class="code" href="_domain_manager__server_8cpp.html#a5737370c1c10bd3ab660f7d7bc84fb20">bind_object_to_string</a>(<a class="code" href="_domain_manager__server_8cpp.html#a44560cd6862e398296e0e5c1c79b4a3c">dmnMgrServant</a>.in(), domainName.c_str());</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(1, dmnmgr_server, &quot;DomainManger is runing...&quot;)</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#ifdef __SDS_OS_VXWORKS__</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        semGive(devMgrMtx);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#elif defined __SDS_OS_LINUX__</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <a class="code" href="_boost__utils_8h.html#a5b01531cf26bc9923f64895896fd5cf1">postSemaphore</a>(<a class="code" href="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t.html#a1387f4d333332cfe81df9ad942455097">BOOST_CONSTANT::DEVICE_MANAGER_CND</a>);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#abe4cc9788f52e49485473dc699537388">   97</a></span>&#160;        <span class="keywordflow">try</span> {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                <span class="comment">//run orb</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                <a class="code" href="_domain_manager__server_8cpp.html#a60800f64e566fffd5bca7065dc80c152">orbWrap</a>-&gt;<a class="code" href="classopensca_support_1_1_o_r_b___wrap.html#a3d594d2eaf36cfe48ce232927e621b0b">orb</a>-&gt;run();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#if 0</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                <span class="comment">//modify under code for this is invaild code,beceause this code not exec forever by maketure</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                <span class="comment">//orbWrap-&gt;orb-&gt;destroy();</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a1204fa6444ae7174767e202a6d39b815">  104</a></span>&#160;        } <span class="keywordflow">catch</span> (...) {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(5, DomainManager_server,</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                      <span class="stringliteral">&quot;DomainManager run with unkown exception&quot;</span>)</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="comment">//delete execute params</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; argc; i++) {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                <span class="keyword">delete</span>[] <a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a>[i];</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                <a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a>[i] = NULL;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        }</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <a class="code" href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a> = NULL;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <a class="code" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a>(5, DomainManager_server, <span class="stringliteral">&quot;DomainManager is shutdowning&quot;</span>)</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="_domain_manager__server_8cpp.html#a9717e7bbecb906637e86cef6da3d83c2">  116</a></span>&#160;        <a class="code" href="_domain_manager__server_8cpp.html#a9717e7bbecb906637e86cef6da3d83c2">return</a> 0;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;}</div><div class="ttc" id="_domain_manager__server_8cpp_html_a5737370c1c10bd3ab660f7d7bc84fb20"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a5737370c1c10bd3ab660f7d7bc84fb20">bind_object_to_string</a></div><div class="ttdeci">orbWrap bind_object_to_string(dmnMgrServant.in(), domainName.c_str())</div></div>
<div class="ttc" id="debug_8h_html"><div class="ttname"><a href="debug_8h.html">debug.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a659f36defdc75a77b3952f5f6763eae3"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a659f36defdc75a77b3952f5f6763eae3">domainName</a></div><div class="ttdeci">std::string domainName</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00083">DomainManager_server.cpp:83</a></div></div>
<div class="ttc" id="class_config_parser_html_a837c454417e8264af505e5599890c254"><div class="ttname"><a href="class_config_parser.html#a837c454417e8264af505e5599890c254">ConfigParser::getValueById</a></div><div class="ttdeci">const char * getValueById(const char *inputId)</div><div class="ttdoc">Get app&amp;#39;s name according to the app&amp;#39;s id provided by user. </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_af45ea956ac3ee29013996d4310eb757c"><div class="ttname"><a href="_domain_manager__server_8cpp.html#af45ea956ac3ee29013996d4310eb757c">dmnMgrArgv</a></div><div class="ttdeci">char ** dmnMgrArgv</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00057">DomainManager_server.cpp:57</a></div></div>
<div class="ttc" id="_s_p_d_parser_8h_html"><div class="ttname"><a href="_s_p_d_parser_8h.html">SPDParser.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_afb91446413d17e8e077d6c01f86230a7"><div class="ttname"><a href="_domain_manager__server_8cpp.html#afb91446413d17e8e077d6c01f86230a7">sdrRoot</a></div><div class="ttdeci">std::string sdrRoot</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00049">DomainManager_server.cpp:49</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a49943bdb8560720d07c87de869066484"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a49943bdb8560720d07c87de869066484">fsRoot</a></div><div class="ttdeci">std::string fsRoot</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00052">DomainManager_server.cpp:52</a></div></div>
<div class="ttc" id="class_s_p_d_parser_html"><div class="ttname"><a href="class_s_p_d_parser.html">SPDParser</a></div><div class="ttdoc">This class is designed to parse all elements of SPD.xml. </div><div class="ttdef"><b>Definition:</b> <a href="_s_p_d_parser_8h_source.html#l00043">SPDParser.h:43</a></div></div>
<div class="ttc" id="classopensca_support_1_1_o_r_b___wrap_html_a3d594d2eaf36cfe48ce232927e621b0b"><div class="ttname"><a href="classopensca_support_1_1_o_r_b___wrap.html#a3d594d2eaf36cfe48ce232927e621b0b">openscaSupport::ORB_Wrap::orb</a></div><div class="ttdeci">static CORBA::ORB_var orb</div><div class="ttdoc">it&amp;#39;s static variable, provides access to orb for multiple classes. </div><div class="ttdef"><b>Definition:</b> <a href="opensca_support_8h_source.html#l00055">openscaSupport.h:55</a></div></div>
<div class="ttc" id="namespaceopensca_support_html"><div class="ttname"><a href="namespaceopensca_support.html">openscaSupport</a></div><div class="ttdoc">The openscaSupport namespace contains useful functions used throughout the opensca framework...</div><div class="ttdef"><b>Definition:</b> <a href="_application_factory_support_8h_source.html#l00034">ApplicationFactorySupport.h:34</a></div></div>
<div class="ttc" id="namespace_c_o_n_s_t_a_n_t_html_a3239fb87215ad73d0f60b81c62f03da2"><div class="ttname"><a href="namespace_c_o_n_s_t_a_n_t.html#a3239fb87215ad73d0f60b81c62f03da2">CONSTANT::FSROOT</a></div><div class="ttdeci">const char * FSROOT</div></div>
<div class="ttc" id="debug_8h_html_a4036580c4cea6cf404647d18f2fe3452"><div class="ttname"><a href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">DEBUG</a></div><div class="ttdeci">#define DEBUG(level, title, debuginfo)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00055">debug.h:55</a></div></div>
<div class="ttc" id="opensca_support_8h_html"><div class="ttname"><a href="opensca_support_8h.html">openscaSupport.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a890d9eaac0943ec0a1ff839f42c0c62b"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a890d9eaac0943ec0a1ff839f42c0c62b">spdParser</a></div><div class="ttdeci">SPDParser spdParser(fsRoot+&quot;/&quot;+spdfl)</div></div>
<div class="ttc" id="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t_html_ad9276652cc5ea641f73bf482990ddddb"><div class="ttname"><a href="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t.html#ad9276652cc5ea641f73bf482990ddddb">BOOST_CONSTANT::DOMAIN_MANAGER_CND</a></div><div class="ttdeci">const char * DOMAIN_MANAGER_CND</div></div>
<div class="ttc" id="_d_m_d_parser_8h_html"><div class="ttname"><a href="_d_m_d_parser_8h.html">DMDParser.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_ab12d606fe78b5f992d8f266865bc9d53"><div class="ttname"><a href="_domain_manager__server_8cpp.html#ab12d606fe78b5f992d8f266865bc9d53">dmdParser</a></div><div class="ttdeci">DMDParser dmdParser(fsRoot+&quot;/&quot;+dmdfl)</div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a7622b10774f2ad5396784ba366063265"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a7622b10774f2ad5396784ba366063265">openscaDomain</a></div><div class="ttdeci">std::string openscaDomain</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00084">DomainManager_server.cpp:84</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a44560cd6862e398296e0e5c1c79b4a3c"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a44560cd6862e398296e0e5c1c79b4a3c">dmnMgrServant</a></div><div class="ttdeci">CF::DomainManager_var dmnMgrServant</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00073">DomainManager_server.cpp:73</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_aa2362c524750d91af654c8993730355a"><div class="ttname"><a href="_domain_manager__server_8cpp.html#aa2362c524750d91af654c8993730355a">spdfl</a></div><div class="ttdeci">std::string spdfl</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00079">DomainManager_server.cpp:79</a></div></div>
<div class="ttc" id="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t_html_a1387f4d333332cfe81df9ad942455097"><div class="ttname"><a href="namespace_b_o_o_s_t___c_o_n_s_t_a_n_t.html#a1387f4d333332cfe81df9ad942455097">BOOST_CONSTANT::DEVICE_MANAGER_CND</a></div><div class="ttdeci">const char * DEVICE_MANAGER_CND</div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a60800f64e566fffd5bca7065dc80c152"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a60800f64e566fffd5bca7065dc80c152">orbWrap</a></div><div class="ttdeci">openscaSupport::ORB_Wrap * orbWrap</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00067">DomainManager_server.cpp:67</a></div></div>
<div class="ttc" id="namespace_c_o_n_s_t_a_n_t_html_a30a0a81efb4f73a8fb963a08d3328ded"><div class="ttname"><a href="namespace_c_o_n_s_t_a_n_t.html#a30a0a81efb4f73a8fb963a08d3328ded">CONSTANT::OPENSCA_DOMAIN</a></div><div class="ttdeci">const char * OPENSCA_DOMAIN</div></div>
<div class="ttc" id="class_domain_manager__impl_html"><div class="ttname"><a href="class_domain_manager__impl.html">DomainManager_impl</a></div><div class="ttdoc">The DomainManager interface is for the control and configuration of the system domain. </div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__impl_8h_source.html#l00065">DomainManager_impl.h:65</a></div></div>
<div class="ttc" id="_bootloader_8cpp_html_a520ae4f8693a7d6529c67272b80da0c4"><div class="ttname"><a href="_bootloader_8cpp.html#a520ae4f8693a7d6529c67272b80da0c4">openScaPath</a></div><div class="ttdeci">char openScaPath[64]</div><div class="ttdef"><b>Definition:</b> <a href="_bootloader_8cpp_source.html#l00072">Bootloader.cpp:72</a></div></div>
<div class="ttc" id="_boost__utils_8h_html_a5b01531cf26bc9923f64895896fd5cf1"><div class="ttname"><a href="_boost__utils_8h.html#a5b01531cf26bc9923f64895896fd5cf1">postSemaphore</a></div><div class="ttdeci">void postSemaphore(const std::string &amp;semName, int initVal=0)</div><div class="ttdoc">Increments the interprocess_semaphore count. </div><div class="ttdef"><b>Definition:</b> <a href="_boost__utils_8h_source.html#l00134">Boost_utils.h:134</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a9717e7bbecb906637e86cef6da3d83c2"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a9717e7bbecb906637e86cef6da3d83c2">return</a></div><div class="ttdeci">return</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00116">DomainManager_server.cpp:116</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_acc12349b3b14d2cf4d87803dd9f362bf"><div class="ttname"><a href="_domain_manager__server_8cpp.html#acc12349b3b14d2cf4d87803dd9f362bf">getConfigFilePathFromSHM</a></div><div class="ttdeci">getConfigFilePathFromSHM(openScaPath, sizeof(openScaPath))</div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a4361c21b905b940373768d00ffc825af"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a4361c21b905b940373768d00ffc825af">dmdfl</a></div><div class="ttdeci">std::string dmdfl</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00051">DomainManager_server.cpp:51</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a4edd73f527ab08df5052a34ec4324e40"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a4edd73f527ab08df5052a34ec4324e40">configParser</a></div><div class="ttdeci">ConfigParser configParser(openScaPath)</div></div>
<div class="ttc" id="class_d_m_d_parser_html"><div class="ttname"><a href="class_d_m_d_parser.html">DMDParser</a></div><div class="ttdoc">class OPENSCA_PARSER_API DMDParser </div><div class="ttdef"><b>Definition:</b> <a href="_d_m_d_parser_8h_source.html#l00032">DMDParser.h:32</a></div></div>
<div class="ttc" id="namespace_c_o_n_s_t_a_n_t_html_a817837bca0c63cbd569427dd33f78fdc"><div class="ttname"><a href="namespace_c_o_n_s_t_a_n_t.html#a817837bca0c63cbd569427dd33f78fdc">CONSTANT::SDRROOT</a></div><div class="ttdeci">const char * SDRROOT</div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a1910d262855b71da353ed0d07a6c7823"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a1910d262855b71da353ed0d07a6c7823">pos</a></div><div class="ttdeci">int pos</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00078">DomainManager_server.cpp:78</a></div></div>
<div class="ttc" id="_boost__utils_8h_html"><div class="ttname"><a href="_boost__utils_8h.html">Boost_utils.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_config_parser_8h_html"><div class="ttname"><a href="_config_parser_8h.html">ConfigParser.h</a></div><div class="ttdoc">:  </div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a4955ec00a5f5c913e2ce439c5424953b"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a4955ec00a5f5c913e2ce439c5424953b">dmdPath</a></div><div class="ttdeci">std::string dmdPath</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00050">DomainManager_server.cpp:50</a></div></div>
<div class="ttc" id="_boost__utils_8h_html_adb83a541d0810ae6f365708645905f0f"><div class="ttname"><a href="_boost__utils_8h.html#adb83a541d0810ae6f365708645905f0f">waitSemaphore</a></div><div class="ttdeci">void waitSemaphore(const std::string &amp;semName, int initVal=0)</div><div class="ttdoc">Decrements the interprocess_semaphore. </div><div class="ttdef"><b>Definition:</b> <a href="_boost__utils_8h_source.html#l00107">Boost_utils.h:107</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a27825c53a59eee89b36ffb5bf63b691e"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a27825c53a59eee89b36ffb5bf63b691e">spdName</a></div><div class="ttdeci">std::string spdName</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00077">DomainManager_server.cpp:77</a></div></div>
<div class="ttc" id="namespace_c_o_n_s_t_a_n_t_html"><div class="ttname"><a href="namespace_c_o_n_s_t_a_n_t.html">CONSTANT</a></div><div class="ttdef"><b>Definition:</b> <a href="utils_8h_source.html#l00118">utils.h:118</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_a14a29423c457f139c3d29cdc483a7ed5"><div class="ttname"><a href="_domain_manager__server_8cpp.html#a14a29423c457f139c3d29cdc483a7ed5">for</a></div><div class="ttdeci">for(int i=0;i&lt; argc;i++)</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00058">DomainManager_server.cpp:58</a></div></div>
<div class="ttc" id="_domain_manager__server_8cpp_html_ab34de1f26d2311c7059d1f1ebcb96851"><div class="ttname"><a href="_domain_manager__server_8cpp.html#ab34de1f26d2311c7059d1f1ebcb96851">dmnMgrImpl</a></div><div class="ttdeci">DomainManager_impl * dmnMgrImpl</div><div class="ttdef"><b>Definition:</b> <a href="_domain_manager__server_8cpp_source.html#l00070">DomainManager_server.cpp:70</a></div></div>
<div class="ttc" id="namespace_c_o_n_s_t_a_n_t_html_ad7847c211da5f866989c9a050634fbf4"><div class="ttname"><a href="namespace_c_o_n_s_t_a_n_t.html#ad7847c211da5f866989c9a050634fbf4">CONSTANT::DMDPATH</a></div><div class="ttdeci">const char * DMDPATH</div></div>
<div class="ttc" id="class_config_parser_html"><div class="ttname"><a href="class_config_parser.html">ConfigParser</a></div><div class="ttdef"><b>Definition:</b> <a href="_config_parser_8h_source.html#l00031">ConfigParser.h:31</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_27e7b6da28153e106312658788f622d3.html">frameworks</a></li><li class="navelem"><a class="el" href="dir_876db2d079b5e78b6b0817082ed6e396.html">DomainMgr</a></li><li class="navelem"><a class="el" href="dir_636ae741360790bf9a77e65d12c69e17.html">src</a></li><li class="navelem"><a class="el" href="_domain_manager__server_8cpp.html">DomainManager_server.cpp</a></li>
    <li class="footer">Generated on Fri Jul 12 2019 14:31:51 for
    <a href="http://www.onetek.net">
    <img class="footer" src="openscaLogo.png" height="31" alt="openSCA"/></a>
    </li>
  </ul>
</div>
</body>
</html>
